package com.ruoyi.goodsInfo.service;

import java.util.List;
import com.ruoyi.goodsInfo.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.goodsInfo.vo.GoodsAddVo;
import com.ruoyi.goodsInfo.vo.GoodsVo;

/**
 * goodsInfoService接口
 *
 * @author ruoyi
 * @date 2024-01-08
 */
public interface GoodsService extends IService<Goods> {
    /**
     * 查询goodsInfo
     *
     * @param id goodsInfo主键
     * @return goodsInfo
     */
    public GoodsVo selectGoodsById(Long id);

    /**
     * 查询goodsInfo列表
     *
     * @param goods goodsInfo
     * @return goodsInfo集合
     */
    public List<Goods> selectGoodsList(Goods goods);

    /**
     * 新增goodsInfo
     *
     * @param goods goodsInfo
     * @return 结果
     */
    public int insertGoods(GoodsAddVo goodsAddVo);

    /**
     * 修改goodsInfo
     *
     * @param goods goodsInfo
     * @return 结果
     */
    public int updateGoods(GoodsAddVo goodsAddVo);

    /**
     * 批量删除goodsInfo
     *
     * @param ids 需要删除的goodsInfo主键集合
     * @return 结果
     */
    public int deleteGoodsByIds(Long[] ids);

    /**
     * 删除goodsInfo信息
     *
     * @param id goodsInfo主键
     * @return 结果
     */
    public int deleteGoodsById(Long id);

    /**
     * 商品信息分页查询
     * @param goodsName
     * @param priceLevel
     * @return
     */
    List<GoodsVo> searchGoodsList(String goodsName, String priceLevel);
}
